﻿using Avalonia;
using Avalonia.Styling;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Eremex.GuardantAPI.Model;
using System.Collections.Generic;
using System.Reflection;

namespace QIDE.ViewModels
{
	public partial class MainViewModel : ViewModelBase
	{
		
		[ObservableProperty]
		private bool isSelectDark;


		




		[RelayCommand]
		private void ChangeTheme()
		{
			if(Application.Current is App application)
			{
				var theme=IsSelectDark?ThemeVariant.Light:ThemeVariant.Dark;
				application.RequestedThemeVariant= theme;
			}
		}



	}
}
